package com.text.day2_3.book;

public class Memu {
    public static void main(String[] args) {
        Book book = new Book();
//        System.out.println(book);
//        System.out.println(book.selectAll());
        book.setName("nihao");
        book.addBook(book);
        book.setName("shijie");
        book.addBook(book);
        book.setName("mei");
        book.addBook(book);
        book.setName("li");
        book.addBook(book);
        book.setName("cn");
        book.addBook(book);

        for (Book book1 : book.selectAll()) {
            System.out.println(book1);
        }

        System.out.println("=======删除=====");
        book.deleteBook("2");
        for (Book book1 : book.selectAll()) {
            System.out.println(book1);
        }

        System.out.println("======再加======");
        book.addBook(new Book("吃饭"));
        for (Book book1 : book.selectAll()) {
            System.out.println(book1);
        }
//        System.out.println("======改名字======");
//        这些方法还很粗
    }
}
